package action;import jason.asSemantics.TransitionSystem;import jason.asSemantics.Unifier;import jason.asSyntax.NumberTerm;import jason.asSyntax.NumberTermImpl;import jason.asSyntax.Term;public class RandomTarget extends Action {	private static final long serialVersionUID = -1178494411263747098L;	@Override	public Object execute(final TransitionSystem ts, final Unifier un, final Term[] args)			throws Exception {		// execute the internal action		ts.getAg().getLogger().info("executing internal action 'br.poli.ecomp.sma.massim.MyAction'");		Term x = args[0];		Term y = args[1];		Term x1 = args[2];		Term y1 = args[3];				double vx = ((NumberTerm)x).solve();		double vy = ((NumberTerm)y).solve();				un.unifies(x1, new NumberTermImpl(vx + Math.random()));		un.unifies(y1, new NumberTermImpl(vy + Math.random()));				// everything ok, so returns true		return true;	}}